/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import Entity.RewardItem;
import Entity.RewardVoucher;
import java.util.Date;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author AdminNUS
 */
@Remote
public interface ULPBeanRemote {

    
   public Integer calculateLoyaltyPoints(Date currentTrans, String customerEmail, Double subtotal);
   public boolean compareMostRecentTransactionDate(Date recentTrans,Date currentTrans);
   public void awardPoints(long userID, int pointsToAward);
   
   
   
   
       public void stakeholderCreateRewardItem(
                 String stakeholder,
                 String reward_Name,
                 String reward_Description,
                 Integer reward_Cost,
                 Integer vouchers_left,
                 boolean unlimitedVouchers
       );
       
       public void stakeholderDeleteRewardItem(long rewardItem_id);
       public List<RewardItem> getRewardsByStakeholder(String stakeholderName);
       public String buyVoucher(String customerEmail, long rewardItem_id);
       public void redeemVoucher(long voucher_id);
       public List<RewardVoucher> getVouchersByCustomer(long customerID);
       public List<RewardVoucher> getVouchersByCustomerAndStakeholder(long customerID, String stakeholderName);
       
       
       
   
}
